<?php

namespace app\wechat\service;

use app\admin\service\BaseService;
use app\wechat\model\MiniUserModel;

class MiniUserService extends BaseService
{
     /**
     * 小程序授权用户
     *
     * @Author tanruizheng
     * @DateTime 2021-07-12
     * @param array $where
     * @return void
     */
    public static function getUserList($params = [], $page = 1, $limit = 15){
        $where = [];
        //列表
        $list = MiniUserModel::where($where)->page($page,$limit)->select()->toArray();
        foreach ($list as &$item) {

        }
        //总数
        $count = MiniUserModel::where($where)->count();
        return self::createList($list,$count);
    }
}